//
//  XSQNewHttpManager.m
//  BuDeJie
//
//  Created by Sem on 2018/6/28.
//  Copyright © 2018年 SEM. All rights reserved.
//

#import "XSQNewHttpManager.h"
#import "XSQSubTagModel.h"

@implementation XSQNewHttpManager
//获取推荐标签
+(AFHTTPSessionManager* ) getSubList:(NSDictionary *) params
           success:(void (^)(NSArray *subArr))success
           failure:(void (^)(NSError* err))failure{
   return  [AFHttpTool requestWihtMethod:RequestMethodTypeGet baseurl:SEM_TEST_SERVER url:@"api/api_open.php" params:params success:^(id response) {
         NSArray *arr  = (NSArray *)response;
        NSArray *adArr=[XSQSubTagModel mj_objectArrayWithKeyValuesArray:arr];
        success(adArr);
    } failure:^(NSError *err) {
        [SVProgressHUD showErrorWithStatus:@"网络繁忙,请稍后再试!"];
        failure(err);
    }];
    
}
@end
